cmake_minimum_required(VERSION 3.5)

project(calibration)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${CMAKE_SYSTEM_NAME}")

find_package(OpenCV 4.5 REQUIRED)

include_directories(
    ${PROJECT_SOURCE_DIR}/include
    ${PROJECT_SOURCE_DIR}/Camera/Include
)

set(SRC
    "src/main.cpp"
    "src/calibrator.cpp"
    "Camera/FightingDahengCapture.cpp"
)

add_executable(calibration ${SRC})

target_link_libraries(calibration ${OpenCV_LIBS} -lpthread)
target_link_libraries(calibration "libgxiapi.so")